/* 
 * File:   lcd19264.h
 * Author: Administrator
 */

#ifndef Lcd_HAL_H
#define	Lcd_HAL_H

#ifdef	__cplusplus
extern "C" {
#endif

#define LCD_CS                                  (3)
#define LCD_LINE_SIZE                           (192)
#define LCD_LINE_SECTOR                         (64)
#define LCD_PAGE_SIZE                           (8)

#define LCD_ENABLE                              (1)
#define LCD_WAIT_TIME_OUT_LIMIT                 (5)
#define LCD_WAIT_TIME_OUT_CYCLE_CNT             (2000)	

    void LcdHalInit(void);
    /****************************************************************************
     * The flowing function can be run independently.
     * Other functions rely on these functions.
     * so if you delete it, some functions may not work.
     ****************************************************************************/
    void Lcd_Busy(void);
    void Lcd_DataW(unsigned char Data);
    void Lcd_ComW(unsigned char Command);
    void Lcd_WriteCom_CS1(unsigned char Content);
    void Lcd_WriteCom_CS2(unsigned char Content);
    void Lcd_WriteCom_CS3(unsigned char Content);
    void Lcd_WriteCom(unsigned char U, unsigned char Content);
    void LcdScreenFill(unsigned char Data);

    /******************************************************************************/
#ifdef	__cplusplus
}
#endif

#endif	/* Lcd_H */

